<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/22
  Time: 11:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    StringBuffer url=request.getRequestURL();
    out.print("URL地址："+url+"<br>");

    int port = request.getServerPort();
    out.print("端口号："+port+"<br>");

    String httpStr = request.getScheme();
    out.print("请求协议："+httpStr+"<br>");

    String contextPath = request.getContextPath();
    out.print("根目录："+contextPath+"<br>");
%>





</body>
</html>
